package com.hitales.liteflow.liteflowdemo.forloopdemo;

import com.hitales.liteflow.liteflowdemo.booleandemo.CustomContext;
import com.yomahub.liteflow.core.FlowExecutor;
import com.yomahub.liteflow.flow.LiteflowResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LiteflowForloopTestService {

    @Autowired
    private FlowExecutor flowExecutor;

    public void test() {
        LiteflowResponse response = flowExecutor.execute2Resp("forloop", "请求参数", CustomContext.class);
        System.out.println("执行是否成功: " + response.isSuccess());
    }
}
